import Vue from 'vue';import Router from 'vue-router';
import Tj from '@/page/tj';
import header from '@/components/header';
import sp from '@/page/sp'
import rd from '@/page/rd'
import sh from '@/page/sh'
import yl from '@/page/yl'
import js from '@/page/js'
import kj from '@/page/kj'
import qc from '@/page/qc'
import ty from '@/page/ty'
import cj from '@/page/cj'
import sou from '@/page/sou'
import add from '@/page/add'
Vue.use(Router)

export default new Router({
  routes: [
    {path: '/', redirect: '/one'},
    {
      path: '/one', component: header, redirect: '/one/tj',
      children: [
        {path: 'tj', component: Tj},
        {path: 'sp', component: sp},
        {path: 'rd', component: rd},
        {path: 'sh', component: sh},
        {path: 'yl', component: yl},
        {path: 'js', component: js},
        {path: 'kj', component: kj},
        {path: 'qc', component: qc},
        {path: 'ty', component: ty},
        {path: 'cj', component: cj},
        {path: 'add', component: add}
      ]
    },
    {
      path: '/sou',
      component: sou
    },
    {
      path: '/add',
      component: add
    }


  ]
})
